-
Notifications
You must be signed in to change notification settings - Fork 15
Add Increment and Decrement Functions #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
I'm not sure we need to add the step argument 🤔 |
The step is optional. Our function works without providing any step. if we decided to keep the step i'll handle the negative case that u mentioned before. |
It becomes the increment function if it only increases the number by 1. 😀 By
That’s exactly my point — I’d prefer not to complicate this simple function. This library isn’t meant to be a catch-all utility; it’s intentionally minimal, focused on covering practical and commonly encountered scenarios. If someone really wants to increament a number by 2, they can try |
Yeah it make sense, i'll fix it. |
This PR Adds increments and decrements functions.
Resolves #77